package com.zheng.umbrella.dao.model;

import java.io.Serializable;
import java.util.Date;

public class UmbrellaHardwareProductSerialnumber implements Serializable {
    private Integer id;

    /**
     * 机器码
     *
     * @mbg.generated
     */
    private String machineCode;

    /**
     * 分机数
     *
     * @mbg.generated
     */
    private Integer pathcount;

    /**
     * 年代号,二位阿拉伯数字
     *
     * @mbg.generated
     */
    private String years;

    /**
     * 产品分类代号,如SJ
     *
     * @mbg.generated
     */
    private String classcode;

    /**
     * 基本机型产品代号
     *
     * @mbg.generated
     */
    private String version;

    /**
     * 更新换代或变型代号
     *
     * @mbg.generated
     */
    private String subversion;

    /**
     * 月份
     *
     * @mbg.generated
     */
    private String months;

    /**
     * 批次
     *
     * @mbg.generated
     */
    private String batchnumber;

    /**
     * 序号
     *
     * @mbg.generated
     */
    private String serialnumber;

    /**
     * 是否已同步自有平台。0:否 1:是
     *
     * @mbg.generated
     */
    private Integer status;

    /**
     * 使用去向。0:自用; 1:代理 2：第三方
     *
     * @mbg.generated
     */
    private Integer direction;

    /**
     * 代理
     *
     * @mbg.generated
     */
    private Integer agentid;

    /**
     * 使用去向备注
     *
     * @mbg.generated
     */
    private String directionremark;

    /**
     * 保修开始时间
     *
     * @mbg.generated
     */
    private Long warrantystarttime;

    /**
     * 保修结束时间
     *
     * @mbg.generated
     */
    private Long warrantyendtime;

    private Date createtime;

    /**
     * 创建人
     *
     * @mbg.generated
     */
    private String createuser;

    private Date updatetime;

    /**
     * 修改人
     *
     * @mbg.generated
     */
    private String updateuser;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMachineCode() {
        return machineCode;
    }

    public void setMachineCode(String machineCode) {
        this.machineCode = machineCode;
    }

    public Integer getPathcount() {
        return pathcount;
    }

    public void setPathcount(Integer pathcount) {
        this.pathcount = pathcount;
    }

    public String getYears() {
        return years;
    }

    public void setYears(String years) {
        this.years = years;
    }

    public String getClasscode() {
        return classcode;
    }

    public void setClasscode(String classcode) {
        this.classcode = classcode;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getSubversion() {
        return subversion;
    }

    public void setSubversion(String subversion) {
        this.subversion = subversion;
    }

    public String getMonths() {
        return months;
    }

    public void setMonths(String months) {
        this.months = months;
    }

    public String getBatchnumber() {
        return batchnumber;
    }

    public void setBatchnumber(String batchnumber) {
        this.batchnumber = batchnumber;
    }

    public String getSerialnumber() {
        return serialnumber;
    }

    public void setSerialnumber(String serialnumber) {
        this.serialnumber = serialnumber;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getDirection() {
        return direction;
    }

    public void setDirection(Integer direction) {
        this.direction = direction;
    }

    public Integer getAgentid() {
        return agentid;
    }

    public void setAgentid(Integer agentid) {
        this.agentid = agentid;
    }

    public String getDirectionremark() {
        return directionremark;
    }

    public void setDirectionremark(String directionremark) {
        this.directionremark = directionremark;
    }

    public Long getWarrantystarttime() {
        return warrantystarttime;
    }

    public void setWarrantystarttime(Long warrantystarttime) {
        this.warrantystarttime = warrantystarttime;
    }

    public Long getWarrantyendtime() {
        return warrantyendtime;
    }

    public void setWarrantyendtime(Long warrantyendtime) {
        this.warrantyendtime = warrantyendtime;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getCreateuser() {
        return createuser;
    }

    public void setCreateuser(String createuser) {
        this.createuser = createuser;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public String getUpdateuser() {
        return updateuser;
    }

    public void setUpdateuser(String updateuser) {
        this.updateuser = updateuser;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", machineCode=").append(machineCode);
        sb.append(", pathcount=").append(pathcount);
        sb.append(", years=").append(years);
        sb.append(", classcode=").append(classcode);
        sb.append(", version=").append(version);
        sb.append(", subversion=").append(subversion);
        sb.append(", months=").append(months);
        sb.append(", batchnumber=").append(batchnumber);
        sb.append(", serialnumber=").append(serialnumber);
        sb.append(", status=").append(status);
        sb.append(", direction=").append(direction);
        sb.append(", agentid=").append(agentid);
        sb.append(", directionremark=").append(directionremark);
        sb.append(", warrantystarttime=").append(warrantystarttime);
        sb.append(", warrantyendtime=").append(warrantyendtime);
        sb.append(", createtime=").append(createtime);
        sb.append(", createuser=").append(createuser);
        sb.append(", updatetime=").append(updatetime);
        sb.append(", updateuser=").append(updateuser);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UmbrellaHardwareProductSerialnumber other = (UmbrellaHardwareProductSerialnumber) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMachineCode() == null ? other.getMachineCode() == null : this.getMachineCode().equals(other.getMachineCode()))
            && (this.getPathcount() == null ? other.getPathcount() == null : this.getPathcount().equals(other.getPathcount()))
            && (this.getYears() == null ? other.getYears() == null : this.getYears().equals(other.getYears()))
            && (this.getClasscode() == null ? other.getClasscode() == null : this.getClasscode().equals(other.getClasscode()))
            && (this.getVersion() == null ? other.getVersion() == null : this.getVersion().equals(other.getVersion()))
            && (this.getSubversion() == null ? other.getSubversion() == null : this.getSubversion().equals(other.getSubversion()))
            && (this.getMonths() == null ? other.getMonths() == null : this.getMonths().equals(other.getMonths()))
            && (this.getBatchnumber() == null ? other.getBatchnumber() == null : this.getBatchnumber().equals(other.getBatchnumber()))
            && (this.getSerialnumber() == null ? other.getSerialnumber() == null : this.getSerialnumber().equals(other.getSerialnumber()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getDirection() == null ? other.getDirection() == null : this.getDirection().equals(other.getDirection()))
            && (this.getAgentid() == null ? other.getAgentid() == null : this.getAgentid().equals(other.getAgentid()))
            && (this.getDirectionremark() == null ? other.getDirectionremark() == null : this.getDirectionremark().equals(other.getDirectionremark()))
            && (this.getWarrantystarttime() == null ? other.getWarrantystarttime() == null : this.getWarrantystarttime().equals(other.getWarrantystarttime()))
            && (this.getWarrantyendtime() == null ? other.getWarrantyendtime() == null : this.getWarrantyendtime().equals(other.getWarrantyendtime()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
            && (this.getCreateuser() == null ? other.getCreateuser() == null : this.getCreateuser().equals(other.getCreateuser()))
            && (this.getUpdatetime() == null ? other.getUpdatetime() == null : this.getUpdatetime().equals(other.getUpdatetime()))
            && (this.getUpdateuser() == null ? other.getUpdateuser() == null : this.getUpdateuser().equals(other.getUpdateuser()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMachineCode() == null) ? 0 : getMachineCode().hashCode());
        result = prime * result + ((getPathcount() == null) ? 0 : getPathcount().hashCode());
        result = prime * result + ((getYears() == null) ? 0 : getYears().hashCode());
        result = prime * result + ((getClasscode() == null) ? 0 : getClasscode().hashCode());
        result = prime * result + ((getVersion() == null) ? 0 : getVersion().hashCode());
        result = prime * result + ((getSubversion() == null) ? 0 : getSubversion().hashCode());
        result = prime * result + ((getMonths() == null) ? 0 : getMonths().hashCode());
        result = prime * result + ((getBatchnumber() == null) ? 0 : getBatchnumber().hashCode());
        result = prime * result + ((getSerialnumber() == null) ? 0 : getSerialnumber().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getDirection() == null) ? 0 : getDirection().hashCode());
        result = prime * result + ((getAgentid() == null) ? 0 : getAgentid().hashCode());
        result = prime * result + ((getDirectionremark() == null) ? 0 : getDirectionremark().hashCode());
        result = prime * result + ((getWarrantystarttime() == null) ? 0 : getWarrantystarttime().hashCode());
        result = prime * result + ((getWarrantyendtime() == null) ? 0 : getWarrantyendtime().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        result = prime * result + ((getCreateuser() == null) ? 0 : getCreateuser().hashCode());
        result = prime * result + ((getUpdatetime() == null) ? 0 : getUpdatetime().hashCode());
        result = prime * result + ((getUpdateuser() == null) ? 0 : getUpdateuser().hashCode());
        return result;
    }
}